using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Catastrophe.Common.AttributeEx;

namespace SiemensAmd.Mmp.Http
{
	[JsonConverter(typeof(StringEnumConverter))]
	public enum RequestResultEnum
	{
		[HttpResponseDescribe(0, "操作成功")]
		Ok,
		[HttpResponseDescribe(-1001, "初始化失败")]
		IniFailed,
		[HttpResponseDescribe(-1002, "读超时")]
		ReadTimeout,
		[HttpResponseDescribe(-1003, "读失败")]
		ReadFailed,
		[HttpResponseDescribe(-1004, "写超时")]
		WriteTimeout,
		[HttpResponseDescribe(-1005, "写失败")]
		WriteFailed,
		[HttpResponseDescribe(-1006, "请求参数异常")]
		ParamError,
		[HttpResponseDescribe(-1007, "body解析异常")]
		BodyAnalyzeError,
		[HttpResponseDescribe(-1008, "地址解析异常")]
		AdrAnalyzeError,
		[HttpResponseDescribe(-1009, "未知的")]
		Unknow,
		[HttpResponseDescribe(-1010, "请求地址数量=0")]
		AdrCountError,
		[HttpResponseDescribe(-1011, "请求Json格式异常")]
		RequestJsonError,
		[HttpResponseDescribe(-2000, "获取程序详情异常")]
		GetProgInfoFailed,
		[HttpResponseDescribe(-2001, "程序下载异常")]
		DownloadFailed,
		[HttpResponseDescribe(-2002, "程序回传异常")]
		UploadFailed,
		[HttpResponseDescribe(-2003, "重命名失败")]
		RenameFailed,
		[HttpResponseDescribe(-2004, "删除程序失败")]
		DeleteFailed
	}
}
